﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Configuration;

namespace ElisaHippo
{
    [XmlRoot("CongfigurePaths")]
    public class Configures
    {

        string limsPath;
        string posIDResult;
        string test_limsID_Dict;
        
      
        public Configures()
        {
            SaveFolder = Utility.GetDataFolder() + "\\Output\\";
            limsPath = Utility.GetDataFolder() + "\\Info\\hospital.xml";
            posIDResult = Utility.GetDataFolder() + "\\Info\\scan.csv";
            test_limsID_Dict = Utility.GetDataFolder() + "\\Info\\Test_LIS_ID.csv";
            BarcodeRegex = ConfigurationManager.AppSettings["BarcodeRegex"];
        }

        public string BarcodeRegex { get; set; }
        public string SaveFolder { get; set; }

        public string LimsPath
        {
            get
            {
                return limsPath;
            }
            set
            {
                limsPath = value;
            }
        }
        public string PosIDResult
        {
            get
            {
                return posIDResult;
            }
            set
            {
                posIDResult = value;
            }
        }

        public string Test_LimsID_Dict
        {
            get
            {
                return test_limsID_Dict;
            }
            set
            {
                test_limsID_Dict = value;
            }
        }
    }
}
